/*
 * ParticleHitCollision.java
 *
 * Created on January 20, 2008, 10:11 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package wisp.game;
//JFC
import com.golden.gamedev.object.collision.BasicCollisionGroup;
import com.golden.gamedev.object.collision.CollisionGroup;
import com.golden.gamedev.object.sprite.AdvanceSprite;
import java.awt.Graphics2D;
import java.awt.Dimension;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.net.*;

// GTGE
import com.golden.gamedev.*;
import com.golden.gamedev.object.*;
import com.golden.gamedev.engine.BaseLoader;
/**
 *
 * @author Solomon See
 */
public class ParticleHitCollision extends BasicCollisionGroup{
    private MainGame game;
    public ParticleHitCollision(MainGame game) {
        this.game = game;
    }
    public void collided(Sprite s1, Sprite s2) {
        ParticleSprite particle = (ParticleSprite) s1;
        
        particle.hit(s2);
        if (s2 instanceof MonsterSprite)
            game.reduceMonsterCount();
    }    
}
